package com.example.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.reggie.dto.DishDto;
import com.example.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);
    DishDto getByIdWithFlavor(Long id);
    void updateWithFlavor(DishDto dishDto);

    void updateStatus(List<Long> ids, int code);

    IPage<DishDto> toDtoPage(int page, int pageSize, String name);

    List<DishDto> toDtoList(Dish dish);
}
